show snackbar without scaffold flutter

105

show snackbar without scaffold flutter -

void _showToast(BuildContext context) {
  final scaffold = Scaffold.of(context);
  scaffold.showSnackBar(
    SnackBar(
      content: const Text('Updating..'),
    ),
  );

this._showToast(context);

Comments

Submit
0 Comments